package com.macro.mall.mapper;

import com.macro.mall.model.PmProdSpec;
import com.macro.mall.model.PmProdSpecExample;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface PmProdSpecMapper {
    long countByExample(PmProdSpecExample example);

    int deleteByExample(PmProdSpecExample example);

    int deleteByPrimaryKey(Long id);

    int insert(PmProdSpec record);

    int insertSelective(PmProdSpec record);

    List<PmProdSpec> selectByExample(PmProdSpecExample example);

    PmProdSpec selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") PmProdSpec record, @Param("example") PmProdSpecExample example);

    int updateByExample(@Param("record") PmProdSpec record, @Param("example") PmProdSpecExample example);

    int updateByPrimaryKeySelective(PmProdSpec record);

    int updateByPrimaryKey(PmProdSpec record);

    List<PmProdSpec> selectList(PmProdSpec record);

    List<PmProdSpec> searchService(Map searchMap);

    List<Map<String,Object>> searchSpecPrptyAppByProdSpecId(Map<String,Object> searchMap);

    List<Map<String,Object>> searchSpecSkuAppByProdSpecId(Map<String,Object> searchMap);

    List<Map<String,Object>> searchServiceMode(Map searchMap);

}